package com.project.poetry.service.entity.dto.poetry;

import com.project.poetry.service.entity.po.author.AuthorPO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class PoetryDTO {

    @ApiModelProperty("表id")
    private Long id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("句子（查询时返回用）")
    private List<String> sentence;

    @ApiModelProperty("作者")
    private Long authorId;

    @ApiModelProperty("序/前言")
    private String preface;

    @ApiModelProperty("文本（保存时候用）")
    private String text;

    @ApiModelProperty("词的断句处，即上下片的句数")
    private Integer position;

    @ApiModelProperty("作者信息")
    private AuthorPO author;

    @ApiModelProperty("类型")
    private String type;
}
